<template>
	<view class="page">
		<view class="top">
			<image src="../../static/logo.png"></image>
			<view class="top_text">
				<view class="top_text1">
					{{user.name}}
				</view>
				<view class="top_text2">
					{{user.phone}}
				</view>
			</view>
		</view>
		<view class="list1">
			<view class="left">
				<u-icon class="icon" name="file-text" color="#2979ff" size="40"></u-icon>
				实名认证
			</view>
			<view>
				{{user.name}}
				<text v-if="user.name==true" style="" class="type">已认证</text>
				<text v-else style="margin-left: 10rpx;" class="type2">未认证</text>
				<u-icon class="icon" name="arrow-right" color="#c8c9cc" size="30"></u-icon>
			</view>
		</view>
		<view class="list1" @click="addressInfo">
			<view class="left">
				<u-icon class="icon" name="file-text" color="#2979ff" size="40"></u-icon>
				填写居住地址
			</view>
			<u-icon class="icon" name="arrow-right" color="#c8c9cc" size="30"></u-icon>
		</view>
		<view class="list1" @click="myCard">
			<view class="left">
				<u-icon class="icon" name="file-text" color="#2979ff" size="40"></u-icon>
				我的健康卡
			</view>
			<u-icon class="icon" name="arrow-right" color="#c8c9cc" size="30"></u-icon>
		</view>
		<view class="list1" @click="BothPerson">
			<view class="left">
				<u-icon class="icon" name="file-text" color="#2979ff" size="40"></u-icon>
				同行人登记
			</view>
			<u-icon class="icon" name="arrow-right" color="#c8c9cc" size="30"></u-icon>
		</view>
		<view class="list1" @click="foreignInfo">
			<view class="left">
				<u-icon class="icon" name="file-text" color="#2979ff" size="40"></u-icon>
				境外入黔信息登记
			</view>
			<u-icon class="icon" name="arrow-right" color="#c8c9cc" size="30"></u-icon>
		</view>
		<view class="list1">
			<view class="left">
				<u-icon class="icon" name="file-text" color="#2979ff" size="40"></u-icon>
				帮助及操作指南
			</view>
			<u-icon class="icon" name="arrow-right" color="#c8c9cc" size="30"></u-icon>
		</view>
		<u-toast ref="uToast"></u-toast>
		<u-modal style="z-index: 999;" v-model="showLoginModal" :show-confirm-button="false" :show-cancel-button="true"
			ref="uModal" content="您已退出登录!" :async-close="true" cancel-text="知道了"></u-modal>

		<view class="btn" @click="logout">
			退出登录
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user: {
					name: '张三',
					phone: '18212121212',
					photo: '',
					type: false
				},
				showLoginModal: false
			}
		},
		methods: {
			addressInfo: function() {
				uni.navigateTo({
					url: '../addressInfo/addressInfo'
				})
			},
			logout: function() {
				this.showLoginModal = true


			},
			myCard:function(){
				uni.navigateTo({
					url:'../myCard/myCard'
				})
			},
			BothPerson:function(){
				uni.navigateTo({
					url:'../BothPerson/BothPerson'
				})
			},
			foreignInfo:function(){
				uni.navigateTo({
					url:'../foreignersInfo/foreignersInfo'
				})
			}
			
		},
		onLoad() {

		}
	}
</script>

<style lang="scss">
	.page {
		width: 100%;
		height: 100%;
	}

	.top {
		width: 100%;
		height: 200rpx;
		display: flex;
		align-items: center;
	}

	.top image {
		width: 100rpx;
		height: 100rpx;
		margin-left: 50rpx;
		border-radius: 50%;
	}

	.top_text,
	.top_text1,
	.top_text2 {
		height: 50rpx;
		display: flex;
		align-items: center;
		margin-left: 15rpx;
		color: #999999;
	}

	.top_text1 {
		font-weight: bold;
		font-size: 35rpx;
		color: black;
	}

	.top_text {
		display: flex;
	}

	.list1 {
		width: 90%;
		height: 120rpx;
		margin-left: 5%;
		border-bottom: 1rpx solid #f2f6fc;
		font-size: 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 10rpx;
	}

	.left {
		height: 80%;
		display: flex;
		align-items: center;
	}

	.icon {
		position: relative;
		margin-right: 20rpx;
	}

	.top_leftImgBox {
		width: 60%;
		height: 70%;
	}

	.top_leftImg {
		width: 100%;
		height: 100%;
	}

	.type {
		height: 40rpx;
		background: #DBF1E1;
		border-radius: 5rpx;
		color: #18b566;
		margin-left: 10rpx;
	}

	.type2 {
		height: 40rpx;
		background: #FAB6B6;
		border-radius: 5rpx;
		color: #DD6161;
		margin-left: 10rpx;
	}

	.btn {
		width: 90%;
		margin-left: 5%;
		height: 100rpx;
		background: #F3F4F6;
		border-radius: 5rpx;
		color: #909399;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 100rpx;
	}
</style>
